<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<f:view contentType="text/html" />

<h:head>
	<title>Create CourseAuthor!</title>
</h:head>
<h:body bgcolor="white">
	<h:form id="CourseAuhtorForm">
		<h:panelGrid id="CourseAuthorTable" columns="2">
			<h:outputLabel for="author">
				<h:outputText id="authorLabel" value="Author Name:" />
			</h:outputLabel>

			<h:inputText id="author" value="#{couseControlBean.author}" required="true" />
			
			<h:outputLabel for="loginName">
				<h:outputText id="loginNameLabel" value="Login:" />
			</h:outputLabel>

			<h:inputText id="loginName" value="#{couseControlBean.loginName}" required="true" />
			
			<h:outputLabel for="password">
				<h:outputText id="passwordLabel" value="Password:" />
			</h:outputLabel>

			<h:inputSecret id="password" value="#{couseControlBean.password}" required="true" />
			
			<h:outputLabel for="firstName">
				<h:outputText id="firstNameLabel" value="First Name:" />
			</h:outputLabel>

			<h:inputText id="firstName" value="#{couseControlBean.firstName}" required="true" />
			
			<h:outputLabel for="lastName">
				<h:outputText id="lastNameLabel" value="Last Name:" />
			</h:outputLabel>

			<h:inputText id="lastName" value="#{couseControlBean.lastName}" required="true" />
			
			<h:outputLabel for="middleName">
				<h:outputText id="middleNameLabel" value="Middle Name:" />
			</h:outputLabel>

			<h:inputText id="middleName" value="#{couseControlBean.middleName}" />
			
			<h:outputLabel for="gender">
				<h:outputText id="genderLabel" value="Gender:" />
			</h:outputLabel>

			
			<h:selectOneMenu id="genderList" value="#{couseControlBean.gender}" required="true">
					<f:selectItems id="genderItemsList" value="#{couseControlBean.genderList}"></f:selectItems>
			</h:selectOneMenu>
			
			<h:outputLabel for="addressLine1">
				<h:outputText id="addressLine1Label" value="AddressLine1:" />
			</h:outputLabel>

			<h:inputText id="addressLine1" value="#{couseControlBean.addressLine1}" required="true" />
			
			<h:outputLabel for="addressLine2">
				<h:outputText id="addressLine2Label" value="AddressLine2:" />
			</h:outputLabel>

			<h:inputText id="addressLine2" value="#{couseControlBean.addressLine2}" />
			
			<h:outputLabel for="city">
				<h:outputText id="cityLabel" value="City:" />
			</h:outputLabel>

			<h:inputText id="city" value="#{couseControlBean.city}" required="true" />
			
			<h:outputLabel for="state">
				<h:outputText id="stateLabel" value="State:" />
			</h:outputLabel>

			<h:inputText id="state" value="#{couseControlBean.state}" required="true" />
			
			<h:outputLabel for="zipcode">
				<h:outputText id="zipcodeLabel" value="Zipcode:" />
			</h:outputLabel>

			<h:inputText id="zipcode" value="#{couseControlBean.zipcode}" required="true" />

			<h:commandButton id="submit"
				action="#{couseControlBean.createAuthor}" value="Create Author" />
		</h:panelGrid>
	</h:form>
</h:body>
</html>
